pandas df represent a long column name with short name

35

df.columns = df.columns.str.strip().str.lower().str.replace(' ', '_').str.replace('(', '').str.replace(')', '')

Comments

Submit
0 Comments